﻿using System;

namespace HslCommunication.Profinet.AllenBradley
{
	/// <summary>
	/// AB PLC的cip通信实现类，适用Micro800系列控制系统<br />
	/// AB PLC's cip communication implementation class, suitable for Micro800 series control system
	/// </summary>
	// Token: 0x020000B8 RID: 184
	public class AllenBradleyMicroCip : AllenBradleyNet
	{
		/// <inheritdoc cref="M:HslCommunication.Profinet.AllenBradley.AllenBradleyNet.#ctor" />
		// Token: 0x06000D50 RID: 3408 RVA: 0x00024C5C File Offset: 0x00022E5C
		public AllenBradleyMicroCip()
		{
		}

		/// <inheritdoc cref="M:HslCommunication.Profinet.AllenBradley.AllenBradleyNet.#ctor(System.String,System.Int32)" />
		// Token: 0x06000D51 RID: 3409 RVA: 0x00024C66 File Offset: 0x00022E66
		public AllenBradleyMicroCip(string ipAddress, int port = 44818) : base(ipAddress, port)
		{
		}

		/// <inheritdoc />
		// Token: 0x06000D52 RID: 3410 RVA: 0x0004F22F File Offset: 0x0004D42F
		protected override byte[] PackCommandService(byte[] portSlot, params byte[][] cips)
		{
			return AllenBradleyHelper.PackCleanCommandService(portSlot, cips);
		}

		/// <inheritdoc />
		// Token: 0x06000D53 RID: 3411 RVA: 0x0004F238 File Offset: 0x0004D438
		public override string ToString()
		{
			return string.Format("AllenBradleyMicroCip[{0}:{1}]", this.IpAddress, this.Port);
		}
	}
}
